package com.tony.spring.mode.strategy;

/**
 * 
 * @author qiu
 *
 */
public class StrategyTest {

	public static void main(String[] args) {
		// 初始化一个策略
		JobStrategy jobStrategy = new BikeJobStrategy();
		
		// 初始化人
		Person person = new Person(jobStrategy);
		
		person.goJob();
		
	}
}
